export default {
  // 购物车总数
  total:(state) => {
    let count = 0
    state.cart.cart.forEach(goods =>count += goods.goods_count )
    return count
  },
  // 收货地址
  shippingAddress(state){
    return state.user.address.provinceName + state.user.address.cityName + state.user.address.countyName + state.user.address.detailInfo
  }
}